package com.web.exiaodao.business.repository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.web.exiaodao.business.entity.WalletRechargeRecord;

import java.util.List;


public interface WalletRechargeRecordRepository extends
		PagingAndSortingRepository<WalletRechargeRecord, Long>,
		JpaSpecificationExecutor<WalletRechargeRecord> {
	public WalletRechargeRecord findByIdAndStatusNot(Long id, Integer status);
	public WalletRechargeRecord findByRechargeOrderNo(String rechargeOrderNo);
	public WalletRechargeRecord findByRechargeOrderNoAndStatusNot(String rechargeOrderNo, Integer status);
	public List<WalletRechargeRecord> findByUserIdAndRechargeStatusAndStatusNot(long userId, int rechargeStatus, Integer status);
}
